import request from '@/utils/request'


export function getAllDeptByCompany(data) {
  return request.post('buss/addressbook/getAllDeptByCompany?companyId='+data)
}

export function getDeptByProjectLinkUsers(data) {
  return request.post('buss/addressbook/getDeptByProjectLinkUsers?projectId='+data)
}

export function getAllSecondPatyBySupervisorProject(data) {
  return request.post('buss/addressbook/getAllSecondPatyBySupervisorProject?projectId='+data)
}

export function getAllSecondPatyByDesignProject(data) {
  return request.post('buss/addressbook/getAllSecondPatyByDesignProject?projectId='+data)
}

export function getAllSecondPatyByCentralLabProject(data) {
  return request.post('buss/addressbook/getAllSecondPatyByCentralLabProject?projectId='+data)
}

export function getAllSecondPatyByContractProject(data) {
  return request.post('buss/addressbook/getAllSecondPatyByContractProject?projectId='+data)
}

export function getAllSecondPatyByProjectAndSectionInfo(data) {
  return request.post('buss/addressbook/getAllSecondPatyByProjectAndSectionInfo?projectId='+data)
}

export function getUserByCompanyId(data) {
  return request.post('buss/addressbook/getUserByCompanyId',data)
}


export function getTagNameByProjectId(data) {
  return request.post('buss/addressbook/getTagNameByProjectId?projectId='+data)
}

export default {
  getAllDeptByCompany,
  getDeptByProjectLinkUsers,
  getAllSecondPatyBySupervisorProject,
  getAllSecondPatyByDesignProject,
  getAllSecondPatyByCentralLabProject,
  getAllSecondPatyByContractProject,
  getAllSecondPatyByProjectAndSectionInfo,
  getUserByCompanyId,
  getTagNameByProjectId,
}
